package org.uni_hi.lsep.gui.test.sim;

import java.awt.LayoutManager;

import javax.swing.JLabel;

import org.uni_hi.lsep.gui.util.BackgroundImagePanel;
import org.uni_hi.lsep.gui.util.Config;

public class SimulationGraphicPanel extends BackgroundImagePanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	IconContainer ico1=null,ico2=null,ico3=null;

	private JLabel extern_IP;

	private JLabel web_IP;

	private JLabel intern_IP;	
	
	public SimulationGraphicPanel(){
		this(null,Config.imgSrc+Config.simBGGifSrc);
		init();
	}

	private SimulationGraphicPanel(LayoutManager lm, String path) {
		super(lm, path);
	}	

	protected void init(){

		ico1=new IconContainer(Config.imgSrc+Config.simPCGifSrc,"Remote Server","88.142.12.145/32");
		ico2=new IconContainer(Config.imgSrc+Config.simPCGifSrc,"Server","147.172.10.3/24");
		ico3=new IconContainer(Config.imgSrc+Config.simPCGifSrc,"Interner Rechner","147.172.15.150/24");
		
		getPanel().add(ico1.getPanel());
		getPanel().add(ico2.getPanel());
		getPanel().add(ico3.getPanel());
		
		ico1.getPanel().setLocation(31,158);
		ico2.getPanel().setLocation(580, 48);
		ico3.getPanel().setLocation(567,240);

		extern_IP=new JLabel("147.172.1.1/24");
		web_IP=new JLabel("147.172.10.1/24");
		intern_IP=new JLabel("147.172.15.1/24");
		
		getPanel().add(extern_IP);
		getPanel().add(web_IP);
		getPanel().add(intern_IP);
		
		extern_IP.setBounds(310, 220, 100, 20);
		web_IP.setBounds(415, 185, 100, 20);
		intern_IP.setBounds(420, 265, 100, 20);
	}
}
